package com.buddy.design.pattern._08adapter.loginadapter.adapter;

import com.buddy.design.pattern._08adapter.loginadapter.ResultMsg;

public class LoginForWechartAdapter implements LoginAdapter {
    @Override
    public boolean support(Object adapter) {
        return adapter instanceof LoginForWechartAdapter;
    }

    @Override
    public ResultMsg login(String id, Object adapter) {

        return ResultMsg.build(200,"WeChart登录成功",true);
    }
}
